package com.letoken.platform.pub.annotation.sms;

import org.springframework.core.annotation.Order;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Target({TYPE})
@Retention(RUNTIME)
@Documented
@Order(10001)
@Constraint(validatedBy = {VerityCodeValidator.class})
public @interface VerityCodeCheck {
    String message() default  "操作失败";

    String typeKey() default "";
    String accountKey() default "";
    int sendCount() default 0;
    int errorCount() default 0;

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
